// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

#include "testing/crypto/aes_testing.h"


const uint8_t AES_KEY[] = {
	0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
	0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f
};

const uint8_t AES_IV[] = {
	0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b
};

const uint8_t AES_PLAINTEXT[] = {
	0x30,0x77,0x02,0x01,0x01,0x04,0x20,0x64,0x85,0x0c,0x50,0x94,0x58,0x9f,0x4b,0x7e,
	0x1a,0xd7,0x58,0x63,0x82,0xc8,0xbc,0xa5,0x16,0x96,0x6a,0x4e,0x87,0xd6,0xc6,0x23,
	0xa8,0x27,0xdc,0xb5,0x89,0x25,0x99,0xa0,0x0a,0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,
	0x03,0x01,0x07,0xa1,0x44,0x03,0x42,0x00,0x04,0xe3,0x51,0xfa,0x63,0x3c,0x37,0xbe,
	0xe6,0xde,0x7f,0x65,0x8e,0xdd,0xbd,0xd6,0xd5,0x31,0xef,0x9c,0xd6,0xb5,0x14,0xc2,
	0x28,0xb1,0x08,0x8b,0x0b,0xe4,0x29,0xc3,0x03,0x67,0x0e,0x28,0xc2,0xb2,0x8b,0xd0,
	0x9b,0xc0,0xe4,0x33,0xa6,0x23,0x5a,0xa9,0x7a,0xeb,0x3a,0x65,0x15,0x95,0x08,0xac,
	0x7a,0xde,0x27,0x36,0x71,0xe4,0x4c,0xde,0x4e
};

const size_t AES_PLAINTEXT_LEN = sizeof (AES_PLAINTEXT);

const uint8_t AES_CIPHERTEXT[] = {
	0xe2,0x4d,0xa4,0x71,0x6d,0x9c,0x3a,0x6a,0x9f,0x70,0x12,0x5a,0x99,0x87,0xbf,0x87,
	0xca,0x9e,0xb4,0xff,0x05,0x48,0xdf,0x4b,0x7a,0x60,0x06,0x5c,0xce,0x5c,0x98,0x2a,
	0xdd,0xa9,0x39,0xb1,0x07,0x00,0xac,0x7a,0x1e,0xfb,0x66,0xb8,0xde,0x41,0xd1,0xf5,
	0xe1,0x2b,0xeb,0x2f,0xde,0x3f,0x6f,0x61,0xca,0x81,0x2e,0xe7,0x2f,0x8e,0x3d,0x63,
	0x3e,0xf8,0xb2,0x6e,0x18,0x4a,0x58,0x40,0x5e,0x5b,0x06,0xbb,0x6d,0xe8,0x2d,0xa3,
	0xfd,0x26,0x3b,0x8f,0xbc,0x1f,0xaf,0xdd,0xcc,0x28,0xcc,0x02,0xd8,0xae,0x15,0x0c,
	0x99,0x94,0xca,0x65,0x6e,0x67,0xc4,0x5a,0xb3,0x77,0x9e,0x62,0xb6,0x63,0xc5,0xbf,
	0x0a,0x4f,0xa8,0x74,0xe0,0x3a,0xe3,0xd3,0x1e
};

const size_t AES_CIPHERTEXT_LEN = sizeof (AES_CIPHERTEXT);

const uint8_t AES_GCM_TAG[] = {
	0xfa,0xa6,0x3c,0x2d,0xe5,0x58,0xe1,0x10,0x52,0x92,0x7a,0xf0,0x06,0x30,0xd1,0x54
};

const uint8_t AES_RSA_PRIVKEY_DER[] = {
	0xe2,0xb8,0xa2,0xd3,0x6e,0x99,0x1a,0x0c,0x98,0x7d,0x43,0xce,0x08,0x5c,0x78,0xb9,
	0xbc,0x56,0x88,0x11,0x4c,0x21,0xa4,0xd5,0x78,0x42,0xe5,0xc3,0x6c,0xdd,0x14,0x54,
	0xa0,0x24,0xc9,0x1b,0x0e,0x06,0x16,0x26,0xd6,0x27,0x92,0xee,0xfe,0xa4,0x2a,0x4b,
	0x49,0xb8,0xf7,0xff,0x9f,0x86,0x58,0x70,0xd0,0xbf,0x1f,0x37,0xab,0x0c,0x9b,0xe2,
	0x35,0x8c,0x2e,0x48,0x81,0xbf,0x60,0xbf,0x76,0xdc,0x68,0x5f,0xbb,0x9d,0xdd,0xa0,
	0x64,0xee,0x40,0x9a,0x26,0xa1,0xfe,0x19,0xde,0x65,0xe6,0xfd,0xd6,0x3e,0xab,0xf7,
	0xdd,0xef,0xd9,0x34,0x17,0x03,0x87,0x49,0xd6,0x20,0x3e,0x5c,0xf7,0x03,0x6a,0x79,
	0x49,0x5a,0xe4,0xa2,0x34,0x66,0xa5,0xad,0x56,0x61,0xeb,0xd7,0xf6,0x3c,0xcb,0xa1,
	0x94,0x1e,0xf5,0x99,0x65,0x2b,0x0c,0x1c,0xd4,0x5e,0x0b,0x5c,0x46,0x18,0x43,0xe6,
	0x77,0xb6,0x01,0x77,0x4f,0x47,0x9b,0x83,0x18,0xe8,0xb8,0x82,0xdb,0x97,0x47,0x55,
	0xed,0x8f,0x48,0x85,0x41,0x29,0x3e,0xfd,0x3c,0xdc,0x39,0xc8,0x52,0x2b,0xf6,0x36,
	0xe9,0x63,0xae,0xce,0x2a,0xbf,0x1f,0x53,0xf8,0xdf,0x70,0x12,0xa6,0xa9,0xf0,0x0c,
	0xea,0x14,0xda,0x3b,0x4a,0xff,0x49,0x09,0xd0,0x82,0x72,0xe4,0xb7,0x74,0x24,0x13,
	0xef,0x31,0x61,0x0e,0xa0,0x39,0xc5,0x24,0x2d,0x80,0x0c,0x3f,0xf4,0x2e,0x2f,0xf8,
	0x51,0x46,0xec,0x09,0xa7,0x78,0xea,0x75,0xe2,0xd7,0xc9,0xdc,0xc8,0x92,0xdf,0x49,
	0x23,0x31,0xda,0x73,0x6e,0x54,0x85,0x7a,0xc6,0x4f,0x4e,0x15,0xa8,0x2d,0xb2,0xcc,
	0x6a,0x8e,0xf8,0xf3,0xbe,0xa8,0xc1,0x6a,0x2a,0x55,0x03,0xf8,0xbc,0xf1,0x9b,0xc1,
	0xfb,0xc3,0x40,0x18,0x20,0x67,0x70,0xee,0xc9,0x05,0x74,0x50,0xfb,0x4e,0xe4,0x05,
	0x04,0xd4,0x6f,0xa8,0x0b,0x34,0xac,0x13,0x44,0xcd,0xbb,0x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,0x84,0xff,0x97,0xe3,0xde,0x73,0x64,0x82,0x40,0x71,0xbe,
	0xfe,0xd5,0x65,0x12,0xf3,0x65,0x68
};

const size_t AES_RSA_PRIVKEY_DER_LEN = sizeof (AES_RSA_PRIVKEY_DER);

const uint8_t AES_RSA_PRIVKEY_GCM_TAG[] = {
	0x77,0x0e,0x01,0xf8,0xfb,0xf6,0x26,0x72,0x2a,0x1d,0x78,0xec,0x83,0xff,0xcf,0x4c
};
